<div class="am-modal am-modal-alert" tabindex="-1" id="my-alert">
  <div class="am-modal-dialog">
    <div class="am-modal-hd title">Beni Baby</div>
    <div class="am-modal-bd text">
      Hello world！
    </div>
    <div class="am-modal-footer">
      <span data-am-modal-confirm class="am-modal-btn">确定</span>
    </div>
  </div>
</div>
<div class="am-modal am-modal-confirm" tabindex="-1" id="my-confirm">
  <div class="am-modal-dialog">
    <div class="am-modal-hd">Beni Baby</div>
    <div class="am-modal-bd text">
      你确定要删除这条记录吗？
    </div>
    <div class="am-modal-footer">
      <span class="am-modal-btn" data-am-modal-cancel>取消</span>
      <span class="am-modal-btn" data-am-modal-confirm>确定</span>
    </div>
  </div>
</div>
<div class="am-modal am-modal-loading am-modal-no-btn" tabindex="-1" id="my-modal-loading">
  <div class="am-modal-dialog">
    <div class="am-modal-hd">正在载入...</div>
    <div class="am-modal-bd">
      <span class="am-icon-spinner am-icon-spin"></span>
    </div>
  </div>
</div>
<footer>
  <div class="am-g">
    <div class="am-u-sm-2">
      <h2>付款方式</h2>
      <a href="/sysarticle?name=<%- encodeURI('支付宝') %>">支付宝</a><br/>
      <a href="/sysarticle?name=<%- encodeURI('微信') %>">微信</a><br/>
      <a href="/sysarticle?name=<%- encodeURI('百度钱包') %>">百度钱包</a><br/>
      <a href="/sysarticle?name=<%- encodeURI('银行卡') %>">银行卡</a><br/>
    </div>
    <div class="am-u-sm-2">
      <h2>服务说明</h2>
      <a href="/sysarticle?name=<%- encodeURI('订购下单') %>">订购下单</a><br/>
      <a href="/sysarticle?name=<%- encodeURI('付款') %>">付款</a><br/>
      <a href="/sysarticle?name=<%- encodeURI('物流配送') %>">物流配送</a><br/>
      <a href="/sysarticle?name=<%- encodeURI('退换货政策') %>">退换货政策</a><br/>
    </div>
    <div class="am-u-sm-2">
      <h2>关于我们</h2>
      <br/>
      <a href="/sysarticle?name=<%- encodeURI('公司简介') %>">公司简介</a><br/>
      <a href="/sysarticle?name=<%- encodeURI('联系我们') %>">联系我们</a><br/>
      <a href="/sysarticle?name=<%- encodeURI('品牌合作') %>">品牌合作</a><br/>
    </div>
    <div class="am-u-sm-2 center">
      <h2>官方微博</h2>
      <img src="/i/2dcode.png">
    </div>
    <div class="am-u-sm-2 center">
      <h2>微信客服</h2>
      <img src="/i/2dcode.png">
    </div>
    <div class="am-u-sm-2 center">
      <h2>微信商城</h2>
      <img src="/i/2dcode.png">
    </div>
  </div>
</footer>

<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="/js/polyfill/rem.min.js"></script>
<script src="/js/polyfill/respond.min.js"></script>
<script src="/js/amazeui.legacy.js"></script>
<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="/js/jquery.min.js"></script>
<script src="/js/amazeui.min.js"></script>
<!--<![endif]-->
<script src="/js/app.js"></script>
<script type="text/javascript" src='/js/main.js'></script>
</body>
</html>
<% if(user){ %>
<script type="text/javascript">
$(function() {
    getCartCount();
});
function getCartCount(){
  $.get("/getcartcount", {
    "ajax"		: true,
    id        : "<%= user.id %>"
  },function(data){
    if(typeof(data)=="object" && data.count){
      $("#cartcount").text(data.count);
    }
  }, "json");
}
<% } %>
</script>
